package com.example.jetpacktest.lifecycle

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.jetpacktest.R

class LifeCycleFragmentActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_life_cycle_fragment)
        var manager = supportFragmentManager
        var transaction = manager.beginTransaction()
        transaction.replace(R.id.container, LifeCycleFragment())
        transaction.commit()
    }
}
